package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.BuyCartBean;
import com.project.bean.BuyDetailBean;
import com.project.bean.BuyOrderBean;

import java.time.LocalDate;
import java.util.List;

public interface IBuyDetailService {
    /**将采购订单的id和购物车的集合批量添加到采购的明细中,
     * 同时修改库存商品的最新采购价，累加商品的库存数量 */
    void addDetail(Integer orderId, List<BuyCartBean> list);

    /**
     * 按订单ID查询入库明细
     * @param id 订单ID
     * @return 采购订单对象{
     *
     * 采购信息：采购id、供应商名称、采购人真实姓名、采购时间、
     * 采购明细集合（采购明细：采购明细ID、采购价、采购数量、商品名、品牌）}
     */
    BuyOrderBean findById(Integer id);




}
